@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: PingFangSC-Regular, Arial, Helvetica, sans-serif;
  background-color: black;
  :global {
    .ant-menu-sub.ant-menu-inline .ant-menu-item .ant-menu-item-only-child .ant-menu-item-selected {
      background: #fff;
    }
    .ant-menu-sub.ant-menu-inline .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
      background: #fff;
    }
  }
  :global(.ant-upload-list-item-image) {
    position: relative;
    max-width: 23%;
    max-height: 96%;
    display: inline-block;
    top: 50%;
    transform: translateY(-50%);
  }
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}
